<?php echo form_open('categories/edit',array('class'=>'form-vertical form-validate','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
        <label class="control-label">Category</label>
        <div class="controls">
          <input type="text" required="" name="category" value="<?php echo $category['category']; ?>" placeholder="category" class="form-control" />
        </div>
    </div>
  <div class="control-group">
    <div class="controls">
      <label class="checkbox">
        <?php 
      		if ($category['activate']==1){
      			echo '<input name="activate" checked="checked" type="checkbox"> Active';	
      		}else{
      			echo '<input name="activate" type="checkbox"> Active';
      		}
      		echo form_hidden('category_id',$category['category_id']);
      	?>
      </label>
      <?php echo $form; ?>
    </div>
  </div>
 </fieldset> 

<?php echo form_close();?>